package com.jzg.jcptadmin.data.vo;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by jzg on 2016/2/19.
 */
public class WorkInfo implements Parcelable {

    /**
     * status : 100
     * msg : 上班打卡成功
     * type : onwork
     */

    private int status;
    private String msg;
    private int IsWork;

    public int getIsWork() {
        return IsWork;
    }

    public void setIsWork(int isWork) {
        IsWork = isWork;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }


    public int getStatus() {
        return status;
    }

    public String getMsg() {
        return msg;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.status);
        dest.writeString(this.msg);
        dest.writeInt(this.IsWork);
    }

    public WorkInfo() {
    }

    protected WorkInfo(Parcel in) {
        this.status = in.readInt();
        this.msg = in.readString();
        this.IsWork = in.readInt();
    }

    public static final Parcelable.Creator<WorkInfo> CREATOR = new Parcelable.Creator<WorkInfo>() {
        public WorkInfo createFromParcel(Parcel source) {
            return new WorkInfo(source);
        }

        public WorkInfo[] newArray(int size) {
            return new WorkInfo[size];
        }
    };
}
